package com.example.swagger.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 *
 */
@ApiModel("用户实体类")//加一个注释
public class User {

    @ApiModelProperty("用户名")//注释
    public String username;
    @ApiModelProperty("密码")
    public String password;

    //字段写成private, 则需要加get set方法, 不加swagger读不到
    @ApiModelProperty("住址")
    private String location;

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }
}
